export function activityStatus(activity) {
  const now = Date.now()

  if (now < new Date(activity.startTime).getTime()) {
    return {
      status: 0,
      text: '未开始',
    }
  } else if (now > new Date(activity.endTime).getTime()) {
    return {
      status: 2,
      text: '已结束',
    }
  } else {
    return {
      status: 1,
      text: '进行中',
    }
  }
}
